<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/jquery-3.6.0.js" type="text/javascript"></script>
		<style type="text/css">
			div {
				width: 200px;
				height: 100px;
				margin-top: 5px;
			}

			#d1 {
				background-color: red;
			}

			#d2 {
				background-color: yellow;
			}

			#d3 {
				background-color: blue;
			}

			#d4 {
				background-color: green;
			}

			#d5 {
				background-color: gold;
			}
		</style>
	</head>
	<body>
		<div id="d0">
			<div id="d1">d1</div>
			<div id="d2">d2</div>
			<div id="d3">d3</div>
			<div id="d4">d4</div>
		</div>
		<script type="text/javascript">
			//------------内增--------------------------------------------
			let div5 = $('<div id="d5">d5</div>');
			// $('#d0').append(div5);
			let d11 = $('#d1').clone();
			// $('#d0').append(d11);


			//------------外增--------------------------------------------
			// $('#d0').after(div5);

			//------------删除--------------------------------------------
			$('#d4').remove();
		</script>
	</body>
</html>
